<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>修改新闻</title>
	<script src="<%=basePath%>ckeditor/ckeditor.js" type="text/javascript"></script>
	<script src="<%=basePath%>ckfinder/ckfinder.js" type="text/javascript"></script>
	<script src="<%=basePath%>WebsiteBackstage/js/jquery-1.7.2.js" type="text/javascript"></script>  
	<script src="<%=basePath%>ckeditor/adapters/jquery.js" type="text/javascript"></script>
	
	<script type="text/javascript" src="<%=basePath%>WebsiteBackstage/js/jquery-calendar.js"></script>
	<link rel="stylesheet" type="text/css" href="<%=basePath%>WebsiteBackstage/css/jquery-calendar.css">
	<script type="text/javascript">
		$(document).ready(function (){
			$("#time1").calendar();
		});
	</script>
</head>
<body>
	修改内容：
	<s:form action="news_update">

    		<s:textfield name="news.title" label="标题"/>
    		
    		<s:select name="news.newsType.id" list="newsTypes" listKey="id" listValue="name"  label="类别"/>
    		
    		<s:textfield name="news.author" label="作者" />
    		<s:textfield name="news.source" label="来源" />
    		<s:textfield name="news.add_time" id="time1" label="添加时间" Class="calendarFocus" Readonly="true"/>
    		
    		<s:textfield name="news.hits" label="点击数"  value="0" Readonly="true"/>
    		<s:textfield name="news.tags" label="关键字" />
    		<s:textfield name="news.description" label="描述" />
    		
    		<s:textarea name="news.content" rows="30" cols="50" label="内容"/>
     		<script type="text/javascript">  
                 $('#editor').ckeditor();  
                 var editor = CKEDITOR.replace('news.content');
                 CKFinder.setupCKEditor(editor, '/sshWeb/ckfinder/');
            </script>
    		
    		<s:radio list="#{'0':'正常','1':'图片','2':'视频'}" name="news.news_types" label="类型"/>
    		<s:textfield name="news.image_path" label="图片/视频路径" />
    		
    		<s:checkbox name="news.is_top" label="置顶" />
    		<s:checkbox name="news.is_quality" label="精品" />
    		
    		<s:hidden name="news.id"></s:hidden>
    		<s:submit/>
		</s:form>
		
</body>
</html>